|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--jade.core.Agent
|
+--jade.tools.ToolAgent
|
+--jade.tools.sniffer.Sniffer
This is the Sniffer agent.
This class implements the low level part of the Sniffer, interacting with Jade
environment and with the sniffer GUI.
At startup, the sniffer subscribes itself as an rma to be informed every time
an agent is born or dead, a container is created or deleted.
For more information see Introduction to the Sniffer
Javadoc documentation for the file
| Inner classes inherited from class jade.tools.ToolAgent |
jade.tools.ToolAgent.AMSListenerBehaviour,
jade.tools.ToolAgent.EventHandler |
| Field Summary | |
static boolean |
SNIFF_OFF
|
static boolean |
SNIFF_ON
|
| Fields inherited from class jade.core.Agent |
AP_ACTIVE,
AP_DELETED,
AP_IDLE,
AP_INITIATED,
AP_MAX,
AP_MIN,
AP_SUSPENDED,
AP_TRANSIT,
AP_WAITING,
currentBehaviour,
currentMessage,
D_ACTIVE,
D_MAX,
D_MIN,
D_RETIRED,
D_SUSPENDED,
D_UNKNOWN,
MSG_QUEUE_SIZE |
| Constructor Summary | |
Sniffer()
|
|
| Method Summary | |
jade.lang.acl.ACLMessage |
getSniffMsg(jade.util.leap.List agents,
boolean onFlag)
Creates the ACLMessage to be sent to the Ams with the list of the agent to be sniffed/unsniffed. |
void |
sniffMsg(jade.util.leap.List agents,
boolean onFlag)
This method add an AMSBehaviour the perform a request to the AMS for sniffing/unsniffing list of agents. |
void |
toolSetup()
ACLMessages for subscription and unsubscription as rma are created and corresponding behaviours are set up. |
protected void |
toolTakeDown()
Cleanup during agent shutdown. |
| Methods inherited from class jade.tools.ToolAgent |
getCancel,
getRequest,
getSubscribe,
setup,
takeDown |
| Methods inherited from class jade.core.Agent |
addBehaviour,
afterClone,
afterMove,
beforeClone,
beforeMove,
blockingReceive,
blockingReceive,
blockingReceive,
blockingReceive,
deregisterLanguage,
deregisterOntology,
doActivate,
doClone,
doDelete,
doMove,
doStart,
doSuspend,
doWait,
doWait,
doWake,
extractContent,
extractMsgContent,
fillContent,
fillMsgContent,
getAID,
getAMS,
getArguments,
getContentManager,
getDefaultDF,
getHap,
getLocalName,
getName,
getQueueSize,
getState,
here,
lookupLanguage,
lookupOntology,
notifyRestarted,
postMessage,
putBack,
read,
read,
receive,
receive,
registerLanguage,
registerOntology,
removeBehaviour,
restartLater,
restore,
run,
send,
setArguments,
setArguments,
setQueueSize,
waitUntilStarted,
write |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final boolean SNIFF_ON
public static final boolean SNIFF_OFF
| Constructor Detail |
public Sniffer()
| Method Detail |
public void toolSetup()
protected void toolTakeDown()
public void sniffMsg(jade.util.leap.List agents,
boolean onFlag)
public jade.lang.acl.ACLMessage getSniffMsg(jade.util.leap.List agents,
boolean onFlag)
agentVect - vector containing TreeData item representing the agentsonFlag - can be:
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||